<HTML>
<HEAD>
<TITLE>Edit mailbox!</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf8">
<link rel="stylesheet" href="template/stylesheet.css">
</HEAD>
<BODY BGCOLOR=#FFFFFF leftmargin="0" topmargin="0" marginheight=0 marginwidth=0 rightmargin=0 bottommargin=0 background="images/back.gif" link="#0000FF" vlink="#0000FF" alink="#0000FF">










<div id="login_header">
<img id="login_header_logo" src="template/images/postbox.png" />
<img id="login_header_logo" src="template/images/postfixadmin2.png" />
</div>
<div id="menu">
<ul>

<TMPL_IF NAME="WELCOME">
  You called as:<b><strong class="yellow1"> <TMPL_VAR NAME="USERSE"> </strong></b> 
  <a href="index.pl?action=logout"><b><strong class="yellow1"> To go out</a></strong></b> 
  </br> </br> </br> </br>
</TMPL_IF>

   <li><a target="_top" href="index.pl">home</a></li>
   <li><a target="_top" href="index.pl?action=postfix&postfixactive=listdomain">Domain List</a></li>
   <li><a target="_top" href="index.pl?action=postfix&postfixactive=listvirtual">Virtual List</a></li>
   <li><a target="_top" href="index.pl?action=postfix&postfixactive=createdomain">New Domain</a></li>
   <li><a target="_top" href="index.pl?action=postfix&postfixactive=createalias">Add Alias</a></li>
   <li><a target="_top" href="index.pl?action=postfix&postfixactive=createmailbox">Add Mailbox</a></li>
      <TMPL_IF NAME="ADMIN_SEE">
   </br> </br> </br> </br>
   <li><a target="_top" href="index.pl?action=postfix&postfixactive=logms">Log SimpleMail</a></li>
   <li><a target="_top" href="index.pl?action=postfix&postfixactive=log">Log MTA</a></li>
   <li><a target="_top" href="index.pl?action=postfix&postfixactive=createadmin">Add Admin</a></li>
   <li><a target="_top" href="index.pl?action=postfix&postfixactive=listadmin">Domain Admin</a></li>
   <li><a target="_top" href="index.pl?action=postfix&postfixactive=setting">Setting</a></li>
   </TMPL_IF>
   
</ul>
</div>



<div id="edit_form">
<form name="create_mailbox" method="post">
<table>
   <tr>
      <td colspan="3"><h3>Edit mailbox for your domain.</h3></td>
   </tr>

      <input type="hidden" name="postfixform" value="editmailbox2">

   <TMPL_IF NAME="domain_correct">
    <tr>
      <td colspan="3" class="standout">The Domain No use!</br /></td>
    </tr>
   </TMPL_IF>
   
    <TMPL_IF NAME="username_correct">
    <tr>
      <td colspan="3" class="standout">The Domain No use!</br /></td>
    </tr>
   </TMPL_IF>

   <tr>
      <td>Username:</td>
      <td colspan="3" class="standout"> <b><TMPL_VAR NAME="username"></b> from domain <b><TMPL_VAR NAME="domain"></b>!</span></td>
      <input type="hidden" name="domain" value="<TMPL_VAR NAME="domain">">
      <input type="hidden" name="mailbox" value="<TMPL_VAR NAME="username">">

      <input type="hidden" name="fDomain" value="<TMPL_VAR NAME="domain">">
      <input type="hidden" name="fUsername" value="<TMPL_VAR NAME="only_username">">
      <td>&nbsp;</td>

      <td>
      <TMPL_IF NAME="fDomain_correct">
            <br /><span class="error_msg">The domain is not valid!</span> 
      </TMPL_IF>
       
      <TMPL_IF NAME="fUsername_correct">
            <br /><span class="error_msg">The username is not valid!</span> 
      </TMPL_IF>
      
      <TMPL_IF NAME="fDomain_correct_exist">
            <br /><span class="error_msg">The domain is not exists!!</span> 
      </TMPL_IF>
      <TMPL_IF NAME="fusername_correct_exist">
            <br /><span class="error_msg">The user already exists!</span> 
      </TMPL_IF> </td>
   </tr>
   <tr>
      <td>Password: not necessarily for an administrator </td>
      <td><input class="flat" type="password" name="fPassword" value=""/></td>

      <td>Password for POP3/IMAP 
      <TMPL_IF NAME="fPassword_correct">
      <br /><span class="error_msg">The passwords is not valid!enter no less than 9 characters</span>
      </TMPL_IF>
      </td>
   </tr>
   <tr>
      <td>Password (again):
      
   <TMPL_IF NAME="fPassword2_correct">
      <br /><span class="error_msg">The passwords did not coincide</span>
      </TMPL_IF>
      
      </td>
      <td><input class="flat" type="password" name="fPassword2" value=""/></td>
      <td>&nbsp;</td>
   </tr>
   
   <tr>

      <td>Name:</td>
      <td><input class="flat" type="text" name="fName" value="<TMPL_VAR NAME="name">" /></td>
      <td>Full name

      <TMPL_IF NAME="fName_correct">
      <br /><span class="error_msg">The name is not valid!<br />Or name big!</span>
      </TMPL_IF>      
      
      </td>
   </tr>
      <tr>
      <td>Quota:</td>
      <td><input type="text" name="fQuota" value="<TMPL_VAR NAME="quota">" /></td>

      <td>MB
      
      <TMPL_IF NAME="fQuota_correct">
      <br /><span class="error_msg">The Quota is not valid!<br />Or are empty!</span>
      </TMPL_IF>    

       <TMPL_IF NAME="MAILBOX_LIMITMB">
      <br /><span class="error_msg">The Quota is limit, plis see tariff!</span>
      </TMPL_IF>   
      
      <TMPL_IF NAME="MAILBOX_ALL_LIMITMB">
      <br /><span class="error_msg">The Quota is limit, plis see tariff from all mailbox in selected domain!</span>
      </TMPL_IF>

      <TMPL_IF NAME="MAILBOX_NO_UNLIM">
      <br /><span class="error_msg">The Quota is limit, no unlim!</span>
      </TMPL_IF>


      </td>
   <tr>
      <tr>
      <td>Active:</td>
      <td><input class="flat" type="checkbox" name="fActive" checked /></td>
      <td>&nbsp;</td>
   </tr>

   <tr>
      <td>Create mailbox:</td>
      <td><input class="flat" type="checkbox" name="fMail" checked /></td>
      <td>&nbsp;</td>
   </tr>

   <tr>
      <td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="Edit Mailbox" /></td>
   </tr>
   <tr>
      <td colspan="3" class="standout">&nbsp;</td>
   </tr>
   
   <TMPL_IF NAME="mailbox_added">
    <tr>
      <td colspan="3" class="standout">Editing of domain is complete!<br /><TMPL_VAR NAME="username"></br /></td>
    </tr>
    <tr>
   <TMPL_LOOP NAME="SOCKET">
   <tr>
    <td colspan="3" class="standout"><TMPL_VAR NAME="answer"></td>
   </tr>
   </TMPL_LOOP>      
      
   </TMPL_IF>
   
</table>
</form>
</div>


</table>
<div id="footer">
<a target="_blank" href="http://postfixadmin.com/">Design by Postfixadmin. All rights reserved</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
</div>





<TR>
		<TD valign="top" bgcolor="#FFFFFF">
     <p align="center"><small><font size="1" face="Verdana">Copyright 2008++ <a target="_blank" href="http://unixforum.org.ua">Simplemail</a>
        . All rights reserved</font></small></p>
       </TD>
	</TR>
</BODY>
</HTML>